%macro sttax6477(yr);
*Create different datasets for different years;
data taxsim.new_taxs&yr;
set taxsim.taxs&yr;
run;

proc sort data=cpsdata.povertyold&yr;
   by id;
run;

DATA taxsim.new_taxs&yr;
MERGE taxsim.new_taxs&yr(IN=in1) cpsdata.povertyold&yr(KEEP=id taxs);
BY id;
run;


%mend;
%sttax6477(1964);
%sttax6477(1965);
%sttax6477(1966);
%sttax6477(1967);
%sttax6477(1968);
%sttax6477(1969);
%sttax6477(1970);
%sttax6477(1971);
%sttax6477(1972);
%sttax6477(1973);
%sttax6477(1974);
%sttax6477(1975);
%sttax6477(1976);
%sttax6477(1977);
